package team.seekers.hula.course.resource.sectionContent.entity.vo;

import lombok.*;
import team.seekers.hula.common.entity.BaseDTO;
import team.seekers.hula.course.resource.problem.entity.vo.ProblemVO;
import team.seekers.hula.course.resource.sectionContent.entity.dto.SectionContentPieceDTO;
import team.seekers.hula.course.resource.sectionContentComment.entity.vo.SectionContentCommentListVO;
import team.seekers.hula.system.resource.entity.dto.VideoDTO;

import java.util.Date;
import java.util.List;

/**
 * date: 2022/5/1 0:49
 *
 * @author GH
 * QQ 1124813753
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SectionContentVO extends BaseDTO {

    private String id;

    private String sectionId;

    private String courseId;

    private String name;

    private Integer type;

    private Date gmtCreate;

    // 如果是富文本，则直接放在content里面
    private String content;

    // 如果是视频
    private VideoDTO video;

    // 如果是题目
    private ProblemVO problem;

    private List<SectionContentCommentListVO> comments;

    private List<SectionContentPieceDTO> pieces;
}
